package com.weizai.carshop.common.enumeration;

public enum AppHttpCodeEnum {

    SUCCESS(200, "操作成功"),
    SQL_ERROR(504, "数据库异常"),
    TOKEN_ERROR(1011, "token 失效"),
    ARGUMENT_ERROR(1001, "传递参数错误"),
    SERVER_ERROR(503, "服务器内部错误"),
    USERNAME_ERROR(1002, "账号不存在"),
    PASSWORD_ERROR(1003, "密码错误");

    int code;

    String message;

    AppHttpCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode () {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
